#include "stdafx.h"
#include "SamuraiKirbyGame.hpp"
#include "DuelScreen.hpp"
#include "MenuScreen.hpp"

SamuraiKirbyGame::SamuraiKirbyGame(void) : rh::Game("Samurai Kirby", 256, 222)
{
	MenuScreen* duelScreen = new MenuScreen();
	_gameScreens.push_back(duelScreen);
	duelScreen->SettingsUpdated.attach<SamuraiKirbyGame>(this, &SamuraiKirbyGame::MenuSelectionComplete);
	duelScreen->Initialize();
	rh::KeyboardInput::RegisterKey(sf::Keyboard::Left);
	rh::KeyboardInput::RegisterKey(sf::Keyboard::Right);
	rh::KeyboardInput::RegisterKey(sf::Keyboard::Up);
	rh::KeyboardInput::RegisterKey(sf::Keyboard::Down);
	rh::KeyboardInput::RegisterKey(sf::Keyboard::A);
	rh::KeyboardInput::RegisterKey(sf::Keyboard::B);
};


SamuraiKirbyGame::~SamuraiKirbyGame(void)
{
};

void SamuraiKirbyGame::MenuSelectionComplete(GameSettings settings)
{	
	_gameScreens.clear();
	DuelScreen* duelScreen = new DuelScreen();
	_gameScreens.push_back(duelScreen);
	duelScreen->Initialize();
};


